package foo.bar.wiki.plugins.impl;

import foo.bar.wiki.plugins.SpaceListenerPlugin;
import foo.bar.wiki.plugins.PluginException;
import foo.bar.wiki.domain.Space;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * @author tmjee
 * @version $Date$ $Id$
 */
public class NoOpSpaceListenerPlugin extends AbstractPlugin implements SpaceListenerPlugin {

    private static final Log LOG = LogFactory.getLog(NoOpSpaceListenerPlugin.class);


    public void preSpaceCreation(Space space) throws PluginException {
        LOG.info("Creating space ["+space.getId()+"]");
    }

    public void postSpaceCreation(Space space) {
        LOG.info("Space ["+space.getId()+"] created");
    }

    public void preSpaceRemoval(Space space) throws PluginException {
        LOG.info("Removing space ["+space.getId()+"] ");
    }

    public void postSpaceRemoval(Space space) {
        LOG.info("Space ["+space.getId()+"] removed");
    }

    public void preSpaceUpdate(Space space) throws PluginException {
        LOG.info("Updating space ["+space.getId()+"]");
    }

    public void postSpaceUpdate(Space space) {
        LOG.info("Space ["+space.getId()+"] updated");
    }
}
